#【练习】计数器函数

def counter_fun(func):
    count=0
    def inner(*args,**kwargs):
        nonlocal count
        count+=1
        res=func(*args,**kwargs)
        print(f"函数被调用{count}次")
        return res
    return inner

@counter_fun
def show(num):
    return num

if __name__ == '__main__':
    show(12333)
    show(123336)
    show(123337)
    show(123338)
